package com.tianjipms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("sys_account")
public class Account {
    private static final long serialVersionUID = 1L;
    /**
     * 账单编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long userId;
    private BigDecimal balance;
    @TableField(exist = false)
    private BigDecimal topUpPrice;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public BigDecimal getTopUpPrice() {
        return topUpPrice;
    }

    public void setTopUpPrice(BigDecimal topUpPrice) {
        this.topUpPrice = topUpPrice;
    }
}
